bitkeeper revision 1.1159.146.1 (41865618vMDBaanL8_33U65ovb9fHw)
authorach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Mon, 1 Nov 2004 15:28:24 +0000 (15:28 +0000)
committerach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Mon, 1 Nov 2004 15:28:24 +0000 (15:28 +0000)
rename pt_regs to xen_regs

33 files changed:
.rootkeys
xen/arch/x86/apic.c
xen/arch/x86/domain.c
xen/arch/x86/i8259.c
xen/arch/x86/irq.c
xen/arch/x86/memory.c
xen/arch/x86/nmi.c
xen/arch/x86/pdb-linux.c
xen/arch/x86/pdb-stub.c
xen/arch/x86/time.c
xen/arch/x86/traps.c
xen/arch/x86/x86_32/entry.S
xen/arch/x86/x86_32/seg_fixup.c
xen/common/ac_timer.c
xen/common/keyhandler.c
xen/common/perfc.c
xen/common/schedule.c
xen/drivers/char/console.c
xen/drivers/char/serial.c
xen/include/asm-x86/apic.h
xen/include/asm-x86/irq.h
xen/include/asm-x86/pdb.h
xen/include/asm-x86/processor.h
xen/include/asm-x86/ptrace.h [deleted file]
xen/include/asm-x86/regs.h [new file with mode: 0644]
xen/include/asm-x86/x86_32/ptrace.h [deleted file]
xen/include/asm-x86/x86_32/regs.h [new file with mode: 0644]
xen/include/asm-x86/x86_64/ptrace.h [deleted file]
xen/include/asm-x86/x86_64/regs.h [new file with mode: 0644]
xen/include/xen/irq.h
xen/include/xen/keyhandler.h
xen/include/xen/sched.h
xen/include/xen/serial.h

index 93831dd4fe3eb320fd9d7eab64ec46023e57280c..9dd3e38f593ca4bc5db1fd2f2dd99a6b02bfda69 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 404f1bb41Yl-5ZjIWnG66HDCj6OIWA xen/include/asm-x86/pda.h
 4022a73diKn2Ax4-R4gzk59lm1YdDg xen/include/asm-x86/pdb.h
 3ddb79c2QF5-pZGzuX4QukPCDAl59A xen/include/asm-x86/processor.h
-40cf1596bim9F9DNdV75klgRSZ6Y2A xen/include/asm-x86/ptrace.h
+40cf1596bim9F9DNdV75klgRSZ6Y2A xen/include/asm-x86/regs.h
 3ddb79c2plf7ciNgoNjU-RsbUzawsw xen/include/asm-x86/rwlock.h
 405b8599BsDsDwKEJLS0XipaiQW3TA xen/include/asm-x86/shadow.h
 3ddb79c3Hgbb2g8CyWLMCK-6_ZVQSQ xen/include/asm-x86/smp.h
 3ddb79c4HugMq7IYGxcQKFBpKwKhzA xen/include/asm-x86/types.h
 40cf1596saFaHD5DC5zvrSn7CDCWGQ xen/include/asm-x86/uaccess.h
 3ddb79c2ADvRmdexd9y3AYK9_NTx-Q xen/include/asm-x86/x86_32/current.h
-3ddb79c3mbqEM7QQr3zVq7NiBNhouA xen/include/asm-x86/x86_32/ptrace.h
+3ddb79c3mbqEM7QQr3zVq7NiBNhouA xen/include/asm-x86/x86_32/regs.h
 3e7f358aG11EvMI9VJ4_9hD4LUO7rQ xen/include/asm-x86/x86_32/string.h
 3ddb79c3M2n1ROZH6xk3HbyN4CPDqg xen/include/asm-x86/x86_32/uaccess.h
 404f1b9ceJeGVaPNIENm2FkK0AgEOQ xen/include/asm-x86/x86_64/current.h
 404f1b9fl6AQ_a-T1TDK3fuwTPXmHw xen/include/asm-x86/x86_64/desc.h
 404f1badfXZJZ2sU8sh9PS2EZvd19Q xen/include/asm-x86/x86_64/ldt.h
-404f1bb86rAXB3aLS1vYdcqpJiEcyg xen/include/asm-x86/x86_64/ptrace.h
+404f1bb86rAXB3aLS1vYdcqpJiEcyg xen/include/asm-x86/x86_64/regs.h
 40e1966azOJZfNI6Ilthe6Q-T3Hewg xen/include/asm-x86/x86_64/string.h
 404f1bc4tWkB9Qr8RkKtZGW5eMQzhw xen/include/asm-x86/x86_64/uaccess.h
 400304fcmRQmDdFYEzDh0wcBba9alg xen/include/public/COPYING
index feb4c5354756d50f7f02e5728c4146d4e7943655..aa8907e0bae1ae7ccb75352f576202820ce5370e 100644 (file)
@@ -724,7 +724,7 @@ int reprogram_ac_timer(s_time_t timeout)
 
 unsigned int apic_timer_irqs [NR_CPUS];
 
-void smp_apic_timer_interrupt(struct pt_regs * regs)
+void smp_apic_timer_interrupt(struct xen_regs * regs)
 {
     ack_APIC_irq();
 
index eaea07f51cfbb902c87278d62973753ca4839483..784027fc11424b5bfb5ed21174363c14053865c8 100644 (file)
@@ -18,7 +18,7 @@
 #include <xen/smp.h>
 #include <xen/delay.h>
 #include <xen/softirq.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <asm/mc146818rtc.h>
 #include <asm/system.h>
 #include <asm/io.h>
index a4202303c2226e87acd5a78fbaafa88040ec974f..d130c623df9f384b44a04610b6b9a2cd242df74c 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <xen/config.h>
 #include <xen/init.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <xen/errno.h>
 #include <xen/sched.h>
 #include <xen/irq.h>
index 2ed656549c28e07c9bb765c3a67f00b2af96c079..649dad7b95a46f456851cb90acbccc9c0cf75ef3 100644 (file)
@@ -17,7 +17,7 @@ irq_desc_t irq_desc[NR_IRQS] __cacheline_aligned;
 
 static void __do_IRQ_guest(int irq);
 
-void no_action(int cpl, void *dev_id, struct pt_regs *regs) { }
+void no_action(int cpl, void *dev_id, struct xen_regs *regs) { }
 
 static void enable_none(unsigned int irq) { }
 static unsigned int startup_none(unsigned int irq) { return 0; }
@@ -87,7 +87,7 @@ void enable_irq(unsigned int irq)
     spin_unlock_irqrestore(&desc->lock, flags);
 }
 
-asmlinkage void do_IRQ(struct pt_regs regs)
+asmlinkage void do_IRQ(struct xen_regs regs)
 {       
 #if defined(__i386__)
     unsigned int      irq = regs.orig_eax;
index 410829cc7283c067729ad445c971d2b116081105..6d9ec7e4e6be299825c563791e42cc67a04de305 100644 (file)
@@ -2262,7 +2262,7 @@ void audit_domains(void)
 }
 
 void audit_domains_key(unsigned char key, void *dev_id,
-                       struct pt_regs *regs)
+                       struct xen_regs *regs)
 {
     open_softirq(MEMAUDIT_SOFTIRQ, audit_domains);
     raise_softirq(MEMAUDIT_SOFTIRQ);
index ec12834ee73d915eac7e2dc057bfd1d1b4c23a46..8caaf4ab856946bb4eea89c0225ee134c916bb61 100644 (file)
@@ -30,7 +30,7 @@ unsigned int nmi_watchdog = NMI_NONE;
 unsigned int watchdog_on = 0;
 static unsigned int nmi_hz = HZ;
 unsigned int nmi_perfctr_msr;  /* the MSR to reset in NMI handler */
-extern void show_registers(struct pt_regs *regs);
+extern void show_registers(struct xen_regs *regs);
 
 extern int logical_proc_id[];
 
@@ -270,9 +270,9 @@ void touch_nmi_watchdog (void)
         alert_counter[i] = 0;
 }
 
-void nmi_watchdog_tick (struct pt_regs * regs)
+void nmi_watchdog_tick (struct xen_regs * regs)
 {
-    extern void die(const char * str, struct pt_regs * regs, long err);
+    extern void die(const char * str, struct xen_regs * regs, long err);
 
     int sum, cpu = smp_processor_id();
 
index fd0fc5ed784d3e040763b6351404b1eb7187c494..cb4f0e0e78806de914de4b267b3e5e94d8522959 100644 (file)
@@ -37,7 +37,7 @@ pdb_linux_clr_bkpt (unsigned long addr, unsigned char value)
 }
 
 void
-pdb_linux_syscall_enter_bkpt (struct pt_regs *regs, long error_code,
+pdb_linux_syscall_enter_bkpt (struct xen_regs *regs, long error_code,
                              trap_info_t *ti)
 {
     /* set at breakpoint at the beginning of the 
@@ -49,7 +49,7 @@ pdb_linux_syscall_enter_bkpt (struct pt_regs *regs, long error_code,
 }
 
 void
-pdb_linux_syscall_exit_bkpt (struct pt_regs *regs, struct pdb_context *pdb_ctx)
+pdb_linux_syscall_exit_bkpt (struct xen_regs *regs, struct pdb_context *pdb_ctx)
 {
     /*
       we've hit an int 0x80 in a user's program, jumped into xen
index 774167c88b3877ba6e21de68529cacc4719082da..6d2d0c73ad94badadf70d7be6eb2251ba2b1d0bd 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <xen/lib.h>
 #include <xen/sched.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <xen/keyhandler.h> 
 #include <asm/apic.h>
 #include <asm/domain_page.h>                           /* [un]map_domain_mem */
@@ -234,7 +234,7 @@ pdb_process_query (char *ptr)
 }
 
 void
-pdb_x86_to_gdb_regs (char *buffer, struct pt_regs *regs)
+pdb_x86_to_gdb_regs (char *buffer, struct xen_regs *regs)
 {
     int idx = 0;
 
@@ -273,7 +273,7 @@ pdb_x86_to_gdb_regs (char *buffer, struct pt_regs *regs)
 
 /* at this point we allow any register to be changed, caveat emptor */
 void
-pdb_gdb_to_x86_regs (struct pt_regs *regs, char *buffer)
+pdb_gdb_to_x86_regs (struct xen_regs *regs, char *buffer)
 {
     hex2mem(buffer, (char *)&regs->eax, sizeof(regs->eax));
     buffer += sizeof(regs->eax) * 2;
@@ -309,7 +309,7 @@ pdb_gdb_to_x86_regs (struct pt_regs *regs, char *buffer)
 }
 
 int
-pdb_process_command (char *ptr, struct pt_regs *regs, unsigned long cr3,
+pdb_process_command (char *ptr, struct xen_regs *regs, unsigned long cr3,
                     int sigval)
 {
     int length;
@@ -1081,7 +1081,7 @@ void pdb_get_packet(char *buffer)
  */
 
 int pdb_handle_exception(int exceptionVector,
-                        struct pt_regs *xen_regs)
+                        struct xen_regs *xen_regs)
 {
     int signal = 0;
     struct pdb_breakpoint* bkpt;
@@ -1215,11 +1215,11 @@ int pdb_handle_exception(int exceptionVector,
 
 void __pdb_key_pressed(void)
 {
-    struct pt_regs *regs = (struct pt_regs *)get_execution_context();
+    struct xen_regs *regs = (struct xen_regs *)get_execution_context();
     pdb_handle_exception(KEYPRESS_EXCEPTION, regs);
 }
 
-void pdb_key_pressed(u_char key, void *dev_id, struct pt_regs *regs) 
+void pdb_key_pressed(u_char key, void *dev_id, struct xen_regs *regs) 
 {
     raise_softirq(DEBUGGER_SOFTIRQ);
 }
index 48b2ce97622b02499dd12880a22a6c438e00af82..be9f477ba58df6d6ae022f4ebcb32ef8e69a39e3 100644 (file)
@@ -50,7 +50,7 @@ static s_time_t        stime_irq;       /* System time at last 'time update' */
 static unsigned long   wc_sec, wc_usec; /* UTC time at last 'time update'.   */
 static rwlock_t        time_lock = RW_LOCK_UNLOCKED;
 
-static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
+static void timer_interrupt(int irq, void *dev_id, struct xen_regs *regs)
 {
     write_lock_irq(&time_lock);
 
index 3763694399dd43e9a37da07d881bca48c7fda339..222a3f916a5ed93aa72eba428d3067957074fa7c 100644 (file)
@@ -32,7 +32,7 @@
 #include <xen/errno.h>
 #include <xen/mm.h>
 #include <xen/console.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <xen/delay.h>
 #include <xen/event.h>
 #include <xen/spinlock.h>
@@ -163,7 +163,7 @@ void show_stack(unsigned long *esp)
     show_trace( esp );
 }
 
-void show_registers(struct pt_regs *regs)
+void show_registers(struct xen_regs *regs)
 {
     unsigned long esp;
     unsigned short ss;
@@ -192,7 +192,7 @@ void show_registers(struct pt_regs *regs)
 
 spinlock_t die_lock = SPIN_LOCK_UNLOCKED;
 
-void die(const char *str, struct pt_regs * regs, long err)
+void die(const char *str, struct xen_regs * regs, long err)
 {
     unsigned long flags;
     spin_lock_irqsave(&die_lock, flags);
@@ -204,7 +204,7 @@ void die(const char *str, struct pt_regs * regs, long err)
 
 
 static inline void do_trap(int trapnr, char *str,
-                           struct pt_regs *regs, 
+                           struct xen_regs *regs, 
                            long error_code, int use_error_code)
 {
     struct domain *p = current;
@@ -241,13 +241,13 @@ static inline void do_trap(int trapnr, char *str,
 }
 
 #define DO_ERROR_NOCODE(trapnr, str, name) \
-asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
+asmlinkage void do_##name(struct xen_regs * regs, long error_code) \
 { \
     do_trap(trapnr, str, regs, error_code, 0); \
 }
 
 #define DO_ERROR(trapnr, str, name) \
-asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
+asmlinkage void do_##name(struct xen_regs * regs, long error_code) \
 { \
     do_trap(trapnr, str, regs, error_code, 1); \
 }
@@ -265,7 +265,7 @@ DO_ERROR(17, "alignment check", alignment_check)
 DO_ERROR_NOCODE(18, "machine check", machine_check)
 DO_ERROR_NOCODE(19, "simd error", simd_coprocessor_error)
 
-asmlinkage void do_int3(struct pt_regs *regs, long error_code)
+asmlinkage void do_int3(struct xen_regs *regs, long error_code)
 {
     struct domain *p = current;
     struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id();
@@ -327,7 +327,7 @@ asmlinkage void do_double_fault(void)
     for ( ; ; ) ;
 }
 
-asmlinkage void do_page_fault(struct pt_regs *regs, long error_code)
+asmlinkage void do_page_fault(struct xen_regs *regs, long error_code)
 {
     struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id();
     trap_info_t *ti;
@@ -433,7 +433,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, long error_code)
           smp_processor_id(), error_code, addr);
 }
 
-asmlinkage void do_general_protection(struct pt_regs *regs, long error_code)
+asmlinkage void do_general_protection(struct xen_regs *regs, long error_code)
 {
     struct domain *d = current;
     struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id();
@@ -516,7 +516,7 @@ asmlinkage void do_general_protection(struct pt_regs *regs, long error_code)
     die("general protection fault", regs, error_code);
 }
 
-asmlinkage void mem_parity_error(struct pt_regs *regs)
+asmlinkage void mem_parity_error(struct xen_regs *regs)
 {
     console_force_unlock();
 
@@ -536,7 +536,7 @@ asmlinkage void mem_parity_error(struct pt_regs *regs)
     for ( ; ; ) ;
 }
 
-asmlinkage void io_check_error(struct pt_regs *regs)
+asmlinkage void io_check_error(struct xen_regs *regs)
 {
     console_force_unlock();
 
@@ -556,14 +556,14 @@ asmlinkage void io_check_error(struct pt_regs *regs)
     for ( ; ; ) ;
 }
 
-static void unknown_nmi_error(unsigned char reason, struct pt_regs * regs)
+static void unknown_nmi_error(unsigned char reason, struct xen_regs * regs)
 {
     printk("Uhhuh. NMI received for unknown reason %02x.\n", reason);
     printk("Dazed and confused, but trying to continue\n");
     printk("Do you have a strange power saving mode enabled?\n");
 }
 
-asmlinkage void do_nmi(struct pt_regs * regs, unsigned long reason)
+asmlinkage void do_nmi(struct xen_regs * regs, unsigned long reason)
 {
     ++nmi_count(smp_processor_id());
 
@@ -592,7 +592,7 @@ static void nmi_softirq(void)
     put_domain(d);
 }
 
-asmlinkage void math_state_restore(struct pt_regs *regs, long error_code)
+asmlinkage void math_state_restore(struct xen_regs *regs, long error_code)
 {
     /* Prevent recursion. */
     clts();
@@ -616,7 +616,7 @@ asmlinkage void math_state_restore(struct pt_regs *regs, long error_code)
 }
 
 #ifdef XEN_DEBUGGER
-asmlinkage void do_pdb_debug(struct pt_regs *regs, long error_code)
+asmlinkage void do_pdb_debug(struct xen_regs *regs, long error_code)
 {
     unsigned int condition;
     struct domain *tsk = current;
@@ -638,7 +638,7 @@ asmlinkage void do_pdb_debug(struct pt_regs *regs, long error_code)
 }
 #endif
 
-asmlinkage void do_debug(struct pt_regs *regs, long error_code)
+asmlinkage void do_debug(struct xen_regs *regs, long error_code)
 {
     unsigned int condition;
     struct domain *tsk = current;
@@ -681,7 +681,7 @@ asmlinkage void do_debug(struct pt_regs *regs, long error_code)
 }
 
 
-asmlinkage void do_spurious_interrupt_bug(struct pt_regs * regs,
+asmlinkage void do_spurious_interrupt_bug(struct xen_regs * regs,
                                           long error_code)
 { /* nothing */ }
 
index 5dad5b0b26348b110305f66bc699aa672585afdd..9a792d19f9ee65a70452add4bfa1797d13379fe9 100644 (file)
@@ -519,7 +519,7 @@ error_code:
        movl  %edx,%gs
        movl  %esp,%edx
        pushl %esi                      # push the error code
-       pushl %edx                      # push the pt_regs pointer
+       pushl %edx                      # push the xen_regs pointer
        GET_CURRENT(%ebx)
        call  *%edi
         addl  $8,%esp
index f79a01c27cb2826b3323800e1000a52af49763db..30ee3222a5ef03aceb8ebb07578881d4ea7e1946 100644 (file)
@@ -259,7 +259,7 @@ int fixup_seg(u16 seg, int positive_access)
 }
 
 /* Decode Reg field of a ModRM byte: return a pointer into a register block. */
-void *decode_reg(struct pt_regs *regs, u8 b)
+void *decode_reg(struct xen_regs *regs, u8 b)
 {
     switch ( b & 7 )
     {
@@ -282,7 +282,7 @@ void *decode_reg(struct pt_regs *regs, u8 b)
  * we assume that the instruction itself is paged into memory (the CPU
  * must have triggered this in order to decode the instruction itself).
  */
-int gpf_emulate_4gb(struct pt_regs *regs)
+int gpf_emulate_4gb(struct xen_regs *regs)
 {
     struct domain *d = current;
     trap_info_t   *ti;
index 658fea3457680db2223eeb537922c03cf75e394b..131095d695b9e956ac36d3bdd5562d3deea36eb8 100644 (file)
@@ -244,7 +244,7 @@ static void ac_timer_softirq_action(void)
 }
 
 
-static void dump_timerq(u_char key, void *dev_id, struct pt_regs *regs)
+static void dump_timerq(u_char key, void *dev_id, struct xen_regs *regs)
 {
     struct ac_timer *t;
     unsigned long    flags; 
index 48860e43c92bb357dfab7b13a30961057327a956..6ca3b662103d7bd8695c768807f5289415710589 100644 (file)
@@ -27,7 +27,7 @@ key_handler *get_key_handler(unsigned char key)
 }
 
 static void show_handlers(unsigned char key, void *dev_id,
-                          struct pt_regs *regs)
+                          struct xen_regs *regs)
 {
     int i; 
     printk("'%c' pressed -> showing installed handlers\n", key);
@@ -40,22 +40,22 @@ static void show_handlers(unsigned char key, void *dev_id,
 
 
 static void dump_registers(unsigned char key, void *dev_id,
-                           struct pt_regs *regs)
+                           struct xen_regs *regs)
 {
-    extern void show_registers(struct pt_regs *regs); 
+    extern void show_registers(struct xen_regs *regs); 
     printk("'%c' pressed -> dumping registers\n", key); 
     show_registers(regs); 
 }
 
 static void halt_machine(unsigned char key, void *dev_id,
-                         struct pt_regs *regs) 
+                         struct xen_regs *regs) 
 {
     printk("'%c' pressed -> rebooting machine\n", key); 
     machine_restart(NULL); 
 }
 
 void do_task_queues(unsigned char key, void *dev_id,
-                    struct pt_regs *regs) 
+                    struct xen_regs *regs) 
 {
     unsigned long  flags;
     struct domain *d;
@@ -103,21 +103,21 @@ void do_task_queues(unsigned char key, void *dev_id,
 }
 
 extern void dump_runq(unsigned char key, void *dev_id, 
-                      struct pt_regs *regs);
+                      struct xen_regs *regs);
 extern void print_sched_histo(unsigned char key, void *dev_id, 
-                              struct pt_regs *regs);
+                              struct xen_regs *regs);
 extern void reset_sched_histo(unsigned char key, void *dev_id, 
-                              struct pt_regs *regs);
+                              struct xen_regs *regs);
 #ifndef NDEBUG
 extern void audit_domains_key(unsigned char key, void *dev_id,
-                           struct pt_regs *regs);
+                           struct xen_regs *regs);
 #endif
 
 #ifdef PERF_COUNTERS
 extern void perfc_printall(unsigned char key, void *dev_id,
-                           struct pt_regs *regs);
+                           struct xen_regs *regs);
 extern void perfc_reset(unsigned char key, void *dev_id,
-                        struct pt_regs *regs);
+                        struct xen_regs *regs);
 #endif
 
 void initialize_keytable(void)
index 631e81787c0598388194f6f26b966c036faacebd..015bd094596bdfde3762952ace463a188cf2e4de 100644 (file)
@@ -31,7 +31,7 @@ static struct {
 
 struct perfcounter_t perfcounters;
 
-void perfc_printall(u_char key, void *dev_id, struct pt_regs *regs)
+void perfc_printall(u_char key, void *dev_id, struct xen_regs *regs)
 {
     int i, j, sum;
     s_time_t now = NOW();
@@ -73,7 +73,7 @@ void perfc_printall(u_char key, void *dev_id, struct pt_regs *regs)
     }
 }
 
-void perfc_reset(u_char key, void *dev_id, struct pt_regs *regs)
+void perfc_reset(u_char key, void *dev_id, struct xen_regs *regs)
 {
     int i, j, sum;
     s_time_t now = NOW();
index 138234104d591279fbf67afa6775f09d4b4ea066..fc57912eb4ea479d70897083a619ffa60598be1a 100644 (file)
@@ -544,7 +544,7 @@ void schedulers_start(void)
 }
 
 
-void dump_runq(u_char key, void *dev_id, struct pt_regs *regs)
+void dump_runq(u_char key, void *dev_id, struct xen_regs *regs)
 {
     s_time_t      now = NOW();
     int           i;
@@ -568,7 +568,7 @@ void dump_runq(u_char key, void *dev_id, struct pt_regs *regs)
 }
 
 #if defined(WAKE_HISTO) || defined(BLOCKTIME_HISTO)
-void print_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
+void print_sched_histo(u_char key, void *dev_id, struct xen_regs *regs)
 {
     int i, j, k;
     for ( k = 0; k < smp_num_cpus; k++ )
@@ -591,7 +591,7 @@ void print_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
     }
       
 }
-void reset_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
+void reset_sched_histo(u_char key, void *dev_id, struct xen_regs *regs)
 {
     int i, j;
     for ( j = 0; j < smp_num_cpus; j++ )
@@ -599,10 +599,10 @@ void reset_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
             schedule_data[j].hist[i] = 0;
 }
 #else
-void print_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
+void print_sched_histo(u_char key, void *dev_id, struct xen_regs *regs)
 {
 }
-void reset_sched_histo(u_char key, void *dev_id, struct pt_regs *regs)
+void reset_sched_histo(u_char key, void *dev_id, struct xen_regs *regs)
 {
 }
 #endif
index 350cf09cbd5c9dc05d41003864f272eb1268e470..f64a705b4d48ecb978346eee6ece491269f06abb 100644 (file)
@@ -243,7 +243,7 @@ static void switch_serial_input(void)
                input_str[xen_rx], opt_conswitch[0], input_str[!xen_rx]);
 }
 
-static void __serial_rx(unsigned char c, struct pt_regs *regs)
+static void __serial_rx(unsigned char c, struct xen_regs *regs)
 {
     key_handler *handler;
     struct domain *p;
@@ -265,7 +265,7 @@ static void __serial_rx(unsigned char c, struct pt_regs *regs)
     }
 }
 
-static void serial_rx(unsigned char c, struct pt_regs *regs)
+static void serial_rx(unsigned char c, struct xen_regs *regs)
 {
     static int switch_code_count = 0;
 
index 092bcaee03dcb9fb805a2b5f2820f56ba6844819..8ca8972175633c9a913cefaa48294b16cce94480 100644 (file)
@@ -99,7 +99,7 @@ static uart_t com[2] = {
  * PRIVATE FUNCTIONS
  */
 
-static void uart_rx(uart_t *uart, struct pt_regs *regs)
+static void uart_rx(uart_t *uart, struct xen_regs *regs)
 {
     unsigned char c;
 
@@ -125,7 +125,7 @@ static void uart_rx(uart_t *uart, struct pt_regs *regs)
     }
 }
 
-static void serial_interrupt(int irq, void *dev_id, struct pt_regs *regs)
+static void serial_interrupt(int irq, void *dev_id, struct xen_regs *regs)
 {
     uart_rx((uart_t *)dev_id, regs);
 }
index 589692a2fdd4afa5c7262a5c4e2acf69fd5a02ec..2c533fe0b260b1985c7bc50e0b57f0bbbeb53ced 100644 (file)
@@ -2,7 +2,7 @@
 #define __ASM_APIC_H
 
 #include <xen/config.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <asm/apicdef.h>
 #include <asm/system.h>
 
@@ -74,10 +74,10 @@ extern void sync_Arb_IDs (void);
 extern void init_bsp_APIC (void);
 extern void setup_local_APIC (void);
 extern void init_apic_mappings (void);
-extern void smp_local_timer_interrupt (struct pt_regs * regs);
+extern void smp_local_timer_interrupt (struct xen_regs * regs);
 extern void setup_APIC_clocks (void);
 extern void setup_apic_nmi_watchdog (void);
-extern inline void nmi_watchdog_tick (struct pt_regs * regs);
+extern inline void nmi_watchdog_tick (struct xen_regs * regs);
 extern int APIC_init_uniprocessor (void);
 extern void disable_APIC_timer(void);
 extern void enable_APIC_timer(void);
index 1e35752a8434c3250baf109a60a0989e5eb38890..83c4c8f614bbbcda5b0a7c7f67013cad6e1daa5a 100644 (file)
@@ -128,7 +128,7 @@ SYMBOL_NAME_STR(x) ":\n\t" \
 
 #define BUILD_SMP_TIMER_INTERRUPT(x,v) XBUILD_SMP_TIMER_INTERRUPT(x,v)
 #define XBUILD_SMP_TIMER_INTERRUPT(x,v) \
-asmlinkage void x(struct pt_regs * regs); \
+asmlinkage void x(struct xen_regs * regs); \
 asmlinkage void call_##x(void); \
 __asm__( \
 "\n"__ALIGN_STR"\n" \
index d718505089adb71c77a90fe3853fc4b7a6e36758..39386f82ea89c2d7e4709122d0d0c0b089f404e6 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef __PDB_H__
 #define __PDB_H__
 
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <xen/list.h>
 #include <public/dom0_ops.h>
 #include <public/xen.h>                   /* for domain id */
@@ -34,7 +34,7 @@ extern int pdb_get_values(u_char *buffer, int length,
 
 /* External entry points. */
 extern int pdb_handle_exception(int exceptionVector,
-                               struct pt_regs *xen_regs);
+                               struct xen_regs *xen_regs);
 extern void pdb_do_debug(dom0_op_t *op);
 
 /* PDB Context. */
@@ -79,9 +79,9 @@ void pdb_linux_get_values(char *buffer, int length, unsigned long address,
                          int pid, unsigned long cr3);
 void pdb_linux_set_values(char *buffer, int length, unsigned long address,
                          int pid, unsigned long cr3);
-void pdb_linux_syscall_enter_bkpt (struct pt_regs *regs, long error_code,
+void pdb_linux_syscall_enter_bkpt (struct xen_regs *regs, long error_code,
                                   trap_info_t *ti);
-void pdb_linux_syscall_exit_bkpt (struct pt_regs *regs, 
+void pdb_linux_syscall_exit_bkpt (struct xen_regs *regs, 
                                  struct pdb_context *pdb_ctx);
 
 #endif  /* __PDB_H__ */
index e87c0986a133add31da77e834f9fa2afade5604a..e647aa713911a874c6944e38b3d92de1c7cd52a0 100644 (file)
@@ -356,7 +356,7 @@ struct guest_trap_bounce {
 };
 extern struct guest_trap_bounce guest_trap_bounce[];
 
-extern int gpf_emulate_4gb(struct pt_regs *regs);
+extern int gpf_emulate_4gb(struct xen_regs *regs);
 
 struct mm_struct {
     /*
diff --git a/xen/include/asm-x86/ptrace.h b/xen/include/asm-x86/ptrace.h
deleted file mode 100644 (file)
index dc8f9b6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-
-#ifdef __x86_64__
-#include <asm/x86_64/ptrace.h>
-#else
-#include <asm/x86_32/ptrace.h>
-#endif
diff --git a/xen/include/asm-x86/regs.h b/xen/include/asm-x86/regs.h
new file mode 100644 (file)
index 0000000..1f4ccdd
--- /dev/null
@@ -0,0 +1,6 @@
+
+#ifdef __x86_64__
+#include <asm/x86_64/regs.h>
+#else
+#include <asm/x86_32/regs.h>
+#endif
diff --git a/xen/include/asm-x86/x86_32/ptrace.h b/xen/include/asm-x86/x86_32/ptrace.h
deleted file mode 100644 (file)
index 7e3e0cf..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef _I386_PTRACE_H
-#define _I386_PTRACE_H
-
-struct pt_regs {
-       long ebx;
-       long ecx;
-       long edx;
-       long esi;
-       long edi;
-       long ebp;
-       long eax;
-       int  xds;
-       int  xes;
-       int  xfs;
-       int  xgs;
-       long orig_eax;
-       long eip;
-       int  xcs;
-       long eflags;
-       long esp;
-       int  xss;
-};
-
-enum EFLAGS {
-        EF_CF   = 0x00000001,
-        EF_PF   = 0x00000004,
-        EF_AF   = 0x00000010,
-        EF_ZF   = 0x00000040,
-        EF_SF   = 0x00000080,
-        EF_TF   = 0x00000100,
-        EF_IE   = 0x00000200,
-        EF_DF   = 0x00000400,
-        EF_OF   = 0x00000800,
-        EF_IOPL = 0x00003000,
-        EF_IOPL_RING0 = 0x00000000,
-        EF_IOPL_RING1 = 0x00001000,
-        EF_IOPL_RING2 = 0x00002000,
-        EF_NT   = 0x00004000,   /* nested task */
-        EF_RF   = 0x00010000,   /* resume */
-        EF_VM   = 0x00020000,   /* virtual mode */
-        EF_AC   = 0x00040000,   /* alignment */
-        EF_VIF  = 0x00080000,   /* virtual interrupt */
-        EF_VIP  = 0x00100000,   /* virtual interrupt pending */
-        EF_ID   = 0x00200000,   /* id */
-};
-
-#endif
diff --git a/xen/include/asm-x86/x86_32/regs.h b/xen/include/asm-x86/x86_32/regs.h
new file mode 100644 (file)
index 0000000..18b1fdc
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef _I386_REGS_H
+#define _I386_REGS_H
+
+struct xen_regs {
+       long ebx;
+       long ecx;
+       long edx;
+       long esi;
+       long edi;
+       long ebp;
+       long eax;
+       int  xds;
+       int  xes;
+       int  xfs;
+       int  xgs;
+       long orig_eax;
+       long eip;
+       int  xcs;
+       long eflags;
+       long esp;
+       int  xss;
+};
+
+enum EFLAGS {
+        EF_CF   = 0x00000001,
+        EF_PF   = 0x00000004,
+        EF_AF   = 0x00000010,
+        EF_ZF   = 0x00000040,
+        EF_SF   = 0x00000080,
+        EF_TF   = 0x00000100,
+        EF_IE   = 0x00000200,
+        EF_DF   = 0x00000400,
+        EF_OF   = 0x00000800,
+        EF_IOPL = 0x00003000,
+        EF_IOPL_RING0 = 0x00000000,
+        EF_IOPL_RING1 = 0x00001000,
+        EF_IOPL_RING2 = 0x00002000,
+        EF_NT   = 0x00004000,   /* nested task */
+        EF_RF   = 0x00010000,   /* resume */
+        EF_VM   = 0x00020000,   /* virtual mode */
+        EF_AC   = 0x00040000,   /* alignment */
+        EF_VIF  = 0x00080000,   /* virtual interrupt */
+        EF_VIP  = 0x00100000,   /* virtual interrupt pending */
+        EF_ID   = 0x00200000,   /* id */
+};
+
+#endif
diff --git a/xen/include/asm-x86/x86_64/ptrace.h b/xen/include/asm-x86/x86_64/ptrace.h
deleted file mode 100644 (file)
index 398f8a4..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-#ifndef _X86_64_PTRACE_H
-#define _X86_64_PTRACE_H
-
-#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) 
-#define R15 0
-#define R14 8
-#define R13 16
-#define R12 24
-#define RBP 36
-#define RBX 40
-/* arguments: interrupts/hypercalls only save upto here*/
-#define R11 48
-#define R10 56 
-#define R9 64
-#define R8 72
-#define RAX 80
-#define RCX 88
-#define RDX 96
-#define RSI 104
-#define RDI 112
-#define ORIG_RAX 120       /* = ERROR */ 
-/* end of arguments */         
-/* cpu exception frame or undefined in case of fast hypercall. */
-#define RIP 128
-#define CS 136
-#define EFLAGS 144
-#define RSP 152
-#define SS 160
-#define ARGOFFSET R11
-#endif /* __ASSEMBLY__ */
-
-/* top of stack page */ 
-#define FRAME_SIZE 168
-
-#define PTRACE_SETOPTIONS         21
-
-/* options set using PTRACE_SETOPTIONS */
-#define PTRACE_O_TRACESYSGOOD     0x00000001
-
-/* Dummy values for ptrace */ 
-#define FS 1000 
-#define GS 1008
-
-#ifndef __ASSEMBLY__ 
-
-struct pt_regs {
-       unsigned long r15;
-       unsigned long r14;
-       unsigned long r13;
-       unsigned long r12;
-       unsigned long rbp;
-       unsigned long rbx;
-/* arguments: non interrupts/hypercalls only save upto here*/
-       unsigned long r11;
-       unsigned long r10;      
-       unsigned long r9;
-       unsigned long r8;
-       unsigned long rax;
-       unsigned long rcx;
-       unsigned long rdx;
-       unsigned long rsi;
-       unsigned long rdi;
-       unsigned long orig_rax;
-/* end of arguments */         
-/* cpu exception frame or undefined */
-       unsigned long rip;
-       unsigned long cs;
-       unsigned long eflags; 
-       unsigned long rsp; 
-       unsigned long ss;
-/* top of stack page */ 
-};
-
-#endif
-
-/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
-#define PTRACE_GETREGS            12
-#define PTRACE_SETREGS            13
-#define PTRACE_GETFPREGS          14
-#define PTRACE_SETFPREGS          15
-#define PTRACE_GETFPXREGS         18
-#define PTRACE_SETFPXREGS         19
-
-#if !defined(__ASSEMBLY__) 
-
-#define instruction_pointer(regs) ((regs)->rip)
-extern void show_regs(struct pt_regs *);
-
-enum {
-        EF_CF   = 0x00000001,
-        EF_PF   = 0x00000004,
-        EF_AF   = 0x00000010,
-        EF_ZF   = 0x00000040,
-        EF_SF   = 0x00000080,
-        EF_TF   = 0x00000100,
-        EF_IE   = 0x00000200,
-        EF_DF   = 0x00000400,
-        EF_OF   = 0x00000800,
-        EF_IOPL = 0x00003000,
-        EF_IOPL_RING0 = 0x00000000,
-        EF_IOPL_RING1 = 0x00001000,
-        EF_IOPL_RING2 = 0x00002000,
-        EF_NT   = 0x00004000,   /* nested task */
-        EF_RF   = 0x00010000,   /* resume */
-        EF_VM   = 0x00020000,   /* virtual mode */
-        EF_AC   = 0x00040000,   /* alignment */
-        EF_VIF  = 0x00080000,   /* virtual interrupt */
-        EF_VIP  = 0x00100000,   /* virtual interrupt pending */
-        EF_ID   = 0x00200000,   /* id */
-};
-
-#endif
-
-#endif
diff --git a/xen/include/asm-x86/x86_64/regs.h b/xen/include/asm-x86/x86_64/regs.h
new file mode 100644 (file)
index 0000000..7daea0f
--- /dev/null
@@ -0,0 +1,114 @@
+#ifndef _X86_64_REGS_H
+#define _X86_64_REGS_H
+
+#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) 
+#define R15 0
+#define R14 8
+#define R13 16
+#define R12 24
+#define RBP 36
+#define RBX 40
+/* arguments: interrupts/hypercalls only save upto here*/
+#define R11 48
+#define R10 56 
+#define R9 64
+#define R8 72
+#define RAX 80
+#define RCX 88
+#define RDX 96
+#define RSI 104
+#define RDI 112
+#define ORIG_RAX 120       /* = ERROR */ 
+/* end of arguments */         
+/* cpu exception frame or undefined in case of fast hypercall. */
+#define RIP 128
+#define CS 136
+#define EFLAGS 144
+#define RSP 152
+#define SS 160
+#define ARGOFFSET R11
+#endif /* __ASSEMBLY__ */
+
+/* top of stack page */ 
+#define FRAME_SIZE 168
+
+#define PTRACE_SETOPTIONS         21
+
+/* options set using PTRACE_SETOPTIONS */
+#define PTRACE_O_TRACESYSGOOD     0x00000001
+
+/* Dummy values for ptrace */ 
+#define FS 1000 
+#define GS 1008
+
+#ifndef __ASSEMBLY__ 
+
+struct xen_regs {
+       unsigned long r15;
+       unsigned long r14;
+       unsigned long r13;
+       unsigned long r12;
+       unsigned long rbp;
+       unsigned long rbx;
+/* arguments: non interrupts/hypercalls only save upto here*/
+       unsigned long r11;
+       unsigned long r10;      
+       unsigned long r9;
+       unsigned long r8;
+       unsigned long rax;
+       unsigned long rcx;
+       unsigned long rdx;
+       unsigned long rsi;
+       unsigned long rdi;
+       unsigned long orig_rax;
+/* end of arguments */         
+/* cpu exception frame or undefined */
+       unsigned long rip;
+       unsigned long cs;
+       unsigned long eflags; 
+       unsigned long rsp; 
+       unsigned long ss;
+/* top of stack page */ 
+};
+
+#endif
+
+/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
+#define PTRACE_GETREGS            12
+#define PTRACE_SETREGS            13
+#define PTRACE_GETFPREGS          14
+#define PTRACE_SETFPREGS          15
+#define PTRACE_GETFPXREGS         18
+#define PTRACE_SETFPXREGS         19
+
+#if !defined(__ASSEMBLY__) 
+
+#define instruction_pointer(regs) ((regs)->rip)
+extern void show_regs(struct xen_regs *);
+
+enum {
+        EF_CF   = 0x00000001,
+        EF_PF   = 0x00000004,
+        EF_AF   = 0x00000010,
+        EF_ZF   = 0x00000040,
+        EF_SF   = 0x00000080,
+        EF_TF   = 0x00000100,
+        EF_IE   = 0x00000200,
+        EF_DF   = 0x00000400,
+        EF_OF   = 0x00000800,
+        EF_IOPL = 0x00003000,
+        EF_IOPL_RING0 = 0x00000000,
+        EF_IOPL_RING1 = 0x00001000,
+        EF_IOPL_RING2 = 0x00002000,
+        EF_NT   = 0x00004000,   /* nested task */
+        EF_RF   = 0x00010000,   /* resume */
+        EF_VM   = 0x00020000,   /* virtual mode */
+        EF_AC   = 0x00040000,   /* alignment */
+        EF_VIF  = 0x00080000,   /* virtual interrupt */
+        EF_VIP  = 0x00100000,   /* virtual interrupt pending */
+        EF_ID   = 0x00200000,   /* id */
+};
+
+#endif
+
+#endif
index 1cf5a50021b46fb3e94b14e4cf4694a5731bad8a..06233dddd24997613fe71a0b3c4d4cb0cf8c89d8 100644 (file)
@@ -3,12 +3,12 @@
 
 #include <xen/config.h>
 #include <xen/spinlock.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <asm/hardirq.h>
 
 struct irqaction
 {
-    void (*handler)(int, void *, struct pt_regs *);
+    void (*handler)(int, void *, struct xen_regs *);
     const char *name;
     void *dev_id;
 };
@@ -62,7 +62,7 @@ extern int setup_irq(unsigned int, struct irqaction *);
 extern void free_irq(unsigned int);
 
 extern hw_irq_controller no_irq_type;
-extern void no_action(int cpl, void *dev_id, struct pt_regs *regs);
+extern void no_action(int cpl, void *dev_id, struct xen_regs *regs);
 
 struct domain;
 extern int pirq_guest_unmask(struct domain *p);
index 03aa53bab5948e53fa4cac9b070db17dcc5484d9..186035a93ed2e901570b9d86fb721183bec43158 100644 (file)
@@ -7,7 +7,7 @@
 #include <xen/sched.h>
 
 typedef void key_handler(unsigned char key, void *dev_id, 
-                        struct pt_regs *regs); 
+                        struct xen_regs *regs); 
 
 extern void add_key_handler(unsigned char key, 
                            key_handler *handler, char *desc); 
index 6eba6ab42505a81fd9a61ef07936080ebd46f113..1473b41db72ca780b293b30aa9a0fb026f91377d 100644 (file)
@@ -6,7 +6,7 @@
 #include <xen/config.h>
 #include <xen/types.h>
 #include <xen/spinlock.h>
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 #include <xen/smp.h>
 #include <asm/page.h>
 #include <asm/processor.h>
index 6fcc67f228c6a1df1c80b6de3ee03c95561abc07..c0ffebbbd9c2d1f98f10cd8a38dc7750a8c740ed 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __XEN_SERIAL_H__
 #define __XEN_SERIAL_H__
 
-#include <asm/ptrace.h>
+#include <asm/regs.h>
 
 /* 'Serial handles' are comprise the following fields. */
 #define SERHND_IDX      (1<<0) /* COM1 or COM2?                           */
@@ -27,7 +27,7 @@ void serial_init_stage2(void);
 int parse_serial_handle(char *conf);
 
 /* Register a character-receive hook on the specified COM port. */
-typedef void (*serial_rx_fn)(unsigned char, struct pt_regs *);
+typedef void (*serial_rx_fn)(unsigned char, struct xen_regs *);
 void serial_set_rx_handler(int handle, serial_rx_fn fn);
 
 /* Transmit a single character via the specified COM port. */